package cn.bingo.yunsj;

import cn.bingo.yunsj.quartz.StaticAppContext;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.StaticApplicationContext;

import javax.servlet.MultipartConfigElement;

@SpringBootApplication
@MapperScan("cn.bingo.yunsj.mapper")
public class YunsjApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(YunsjApplication.class, args);

        StaticAppContext.setContext(context);
    }
}
